#ifndef __POSIX_API_H
#define __POSIX_API_H
#include "common.h"

int m_socket(__attribute__((unused)) int domain, int type, __attribute__((unused)) int protocol);
int m_bind(int socket_fd, const struct sockaddr * address, __attribute__((unused)) socklen_t len);
int m_close(int fd);
ssize_t m_recv_from(int fd, void * buf, size_t len, __attribute__((unused)) int flags, struct sockaddr * src_address, __attribute__((unused)) socklen_t * addr_len);
ssize_t m_send_to(int fd, const void * buf, size_t len, __attribute__((unused)) int flags, const struct sockaddr * dst_addr, __attribute__((unused)) socklen_t addr_len);
int m_listen(int sock_fd, __attribute__((unused)) int backlog);
int m_accept(int sock_fd, struct sockaddr * address, __attribute__((unused)) socklen_t * len);
ssize_t m_send(int sock_fd, const void * buf, size_t len, __attribute__((unused)) int flags);
ssize_t m_recv(int sock_fd, void * buf, size_t len, __attribute__((unused)) int flags);



#endif